package com.ykdl.member.kid.beans;

import java.io.Serializable;

import android.util.Log;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;

import net.wxxr.http.interfaces.IJsonParser;

public class RegisterPhonebean implements Serializable,IJsonParser {
	/**
	 * 
	 */
	private static final long serialVersionUID = -5173542449997833922L;
	private String access_token ;
	private String actor_id ;
	private String actor_type ;
	private float expires_in ;
	private String refresh_token ;
	private String desc ;
	private String error ;
	
	public RegisterPhonebean() {
		super();
		// TODO Auto-generated constructor stub
	}
	public RegisterPhonebean(String access_token, String actor_id,
			String actor_type, float expires_in, String refresh_token,
			String desc, String error) {
		super();
		this.access_token = access_token;
		this.actor_id = actor_id;
		this.actor_type = actor_type;
		this.expires_in = expires_in;
		this.refresh_token = refresh_token;
		this.desc = desc;
		this.error = error;
	}
	public String getDesc() {
		return desc;
	}
	public void setDesc(String desc) {
		this.desc = desc;
	}
	public String getError() {
		return error;
	}
	public void setError(String error) {
		this.error = error;
	}
	public String getAccess_token() {
		return access_token;
	}
	public void setAccess_token(String access_token) {
		this.access_token = access_token;
	}
	public String getActor_id() {
		return actor_id;
	}
	public void setActor_id(String actor_id) {
		this.actor_id = actor_id;
	}
	public String getActor_type() {
		return actor_type;
	}
	public void setActor_type(String actor_type) {
		this.actor_type = actor_type;
	}
	public float getExpires_in() {
		return expires_in;
	}
	public void setExpires_in(float expires_in) {
		this.expires_in = expires_in;
	}
	public String getRefresh_token() {
		return refresh_token;
	}
	public void setRefresh_token(String refresh_token) {
		this.refresh_token = refresh_token;
	}
	@Override
	public IJsonParser parse(String json) throws Exception {
		// TODO Auto-generated method stub
		Gson   gson = null;
		Log.e("alan", "--------RegisterPhonebean----json:"+json);
		if(null != json){
			GsonBuilder b = new GsonBuilder();
			gson  = b.create();
			return gson.fromJson(json, RegisterPhonebean.class);
		}
		return null;
	}
}
